
/**
 * Project Name:cats-zcjc
 * File Name:Station.java
 * Package Name:com.catsic.zcjc.entity
 * Date:2017年10月26日下午4:24:18
 * Copyright (c) 2017, oa.catsic.com All Rights Reserved.
 */
 
package com.catsic.zcjc.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.catsic.base.BaseEntity;


/**
 * ClassName: EquipData
 * Description: 设备数据实体类
 * date: 2017年10月26日 下午4:24:18
 * author: xietiebing
 */
@Entity
@Table(name="T_EQUIP_DATA")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class EquipData extends BaseEntity implements Serializable{


	/**
	 * 
	 */
	private static final long serialVersionUID = -6570776338207616422L;

	/**
	 * collectionTime:采集时间
	 */
	@Column(name="COLLECTION_TIME")
	private Date collectionTime;
	
	/**
	 * plateNo:车牌号码
	 */
	@Column(name="PLATE_NO")
	private String plateNo;
	
	/**
	 * plateColor:车牌颜色
	 */
	@Column(name="PLATE_COLOR")
	private String plateColor;
	
	/**
	 * trainType:车型
	 */
	@Column(name="TRAIN_TYPE")
	private String trainType;
	
	/**
	 * axleNumber:车轴数
	 */
	@Column(name="AXLE_NUMBER")
	private Integer axleNumber;
	
	/**
	 * wheelNumber:车轮数
	 */
	@Column(name="WHEEL_NUMBER")
	private Integer wheelNumber;
	
	/**
	 * speed:速度
	 */
	@Column(name="SPEED")
	private Double speed;
	
	/**
	 * totalWeight:总重
	 */
	@Column(name="TOTAL_WEIGHT")
	private Double totalWeight;
	
	/**
	 * wheelWeight:各轴重
	 */
	@Column(name="WHEEL_WEIGHT")
	private Double wheelWeight;
	
	/**
	 * overrunWeight:超重
	 */
	@Column(name="OVERRUN_WEIGHT")
	private Double overrunWeight;

	/**
	 * goodsType:货物类型
	 */
	@Column(name="GOODS_TYPE")
	private String goodsType;
	
	/**
	 * station:所属站点
	 */
	@ManyToOne(fetch = FetchType.LAZY,optional = false)
	@JoinColumn(name="STATION_ID",referencedColumnName = "ID")
	private Station station;
	
	/**
	 * equip:所属设备
	 */
	@ManyToOne(fetch = FetchType.LAZY,optional = false)
	@JoinColumn(name="EQUIP_ID",referencedColumnName = "ID")
	private Equip equip;
	
	/**
	 * fileData:设备数据附件
	 */
	@OneToMany(cascade=CascadeType.REMOVE,fetch = FetchType.LAZY,mappedBy="equipData") 
    private List<EquipFileData> fileData;
	
	/**
	 * markList:标记数据
	 */
	@OneToMany(cascade=CascadeType.REMOVE,fetch = FetchType.LAZY,mappedBy="equipData") 
    private List<EquipDataMark> markList;
	
	/**
	 * system:所属系统
	 */
	@ManyToOne(fetch = FetchType.LAZY,optional = false)
	@JoinColumn(name="SYSTEM_ID",referencedColumnName = "ID")
	private System system;
	
	/**
	 * wheelNumber1:轴1轮数
	 */
	@Column(name="WHEEL_NUMBER1")
	private Integer wheelNumber1;
	
	/**
	 * wheelNumber2:轴2轮数
	 */
	@Column(name="WHEEL_NUMBER2")
	private Integer wheelNumber2;
	
	/**
	 * wheelNumber3:轴3轮数
	 */
	@Column(name="WHEEL_NUMBER3")
	private Integer wheelNumber3;
	
	/**
	 * wheelNumber4:轴4轮数
	 */
	@Column(name="WHEEL_NUMBER4")
	private Integer wheelNumber4;
	
	/**
	 * wheelNumber5:轴5轮数
	 */
	@Column(name="WHEEL_NUMBER5")
	private Integer wheelNumber5;
	
	/**
	 * wheelNumber6:轴6轮数
	 */
	@Column(name="WHEEL_NUMBER6")
	private Integer wheelNumber6;
	
	/**
	 * wheelNumber7:轴7轮数
	 */
	@Column(name="WHEEL_NUMBER7")
	private Integer wheelNumber7;
	
	/**
	 * wheelNumber8:轴8轮数
	 */
	@Column(name="WHEEL_NUMBER8")
	private Integer wheelNumber8;
	
	/**
	 * wheelNumber9:轴9轮数
	 */
	@Column(name="WHEEL_NUMBER9")
	private Integer wheelNumber9;
	
	/**
	 * wheelNumber10:轴10轮数
	 */
	@Column(name="WHEEL_NUMBER10")
	private Integer wheelNumber10;
	
	/**
	 * axleWeight1:轴重1
	 */
	@Column(name="AXLE_WEIGHT1")
	private Double axleWeight1;
	
	/**
	 * axleWeight2:轴重2
	 */
	@Column(name="AXLE_WEIGHT2")
	private Double axleWeight2;
	
	/**
	 * axleWeight3:轴重3
	 */
	@Column(name="AXLE_WEIGHT3")
	private Double axleWeight3;
	
	/**
	 * axleWeight4:轴重4
	 */
	@Column(name="AXLE_WEIGHT4")
	private Double axleWeight4;
	
	/**
	 * axleWeight5:轴重5
	 */
	@Column(name="AXLE_WEIGHT5")
	private Double axleWeight5;
	
	/**
	 * axleWeight6:轴重6
	 */
	@Column(name="AXLE_WEIGHT6")
	private Double axleWeight6;
	
	/**
	 * axleWeight7:轴重7
	 */
	@Column(name="AXLE_WEIGHT7")
	private Double axleWeight7;
	
	/**
	 * axleWeight8:轴重8
	 */
	@Column(name="AXLE_WEIGHT8")
	private Double axleWeight8;
	
	/**
	 * axleWeight9:轴重9
	 */
	@Column(name="AXLE_WEIGHT9")
	private Double axleWeight9;
	
	/**
	 * axleWeight10:轴重10
	 */
	@Column(name="AXLE_WEIGHT10")
	private Double axleWeight10;
	
	/**
	 * axleBase1:轴距1
	 */
	@Column(name="AXLE_BASE1")
	private Double axleBase1;
	
	/**
	 * axleBase2:轴距2
	 */
	@Column(name="AXLE_BASE2")
	private Double axleBase2;
	
	/**
	 * axleBase3:轴距3
	 */
	@Column(name="AXLE_BASE3")
	private Double axleBase3;
	
	/**
	 * axleBase4:轴距4
	 */
	@Column(name="AXLE_BASE4")
	private Double axleBase4;
	
	/**
	 * axleBase5:轴距5
	 */
	@Column(name="AXLE_BASE5")
	private Double axleBase5;
	
	/**
	 * axleBase6:轴距6
	 */
	@Column(name="AXLE_BASE6")
	private Double axleBase6;
	
	/**
	 * axleBase7:轴距7
	 */
	@Column(name="AXLE_BASE7")
	private Double axleBase7;
	
	/**
	 * axleBase8:轴距8
	 */
	@Column(name="AXLE_BASE8")
	private Double axleBase8;
	
	/**
	 * axleBase9:轴距9
	 */
	@Column(name="AXLE_BASE9")
	private Double axleBase9;
	
	/**
	 * axleBase10:轴距10
	 */
	@Column(name="AXLE_BASE10")
	private Double axleBase10;
	
	/**
	 * tag:是否已读标记,0:未读，1：已读
	 */
	@Column(name="TAG")
	private Integer tag;
	
	/**
	 * status:状态
	 */
	@Column(name="STATUS")
	private Integer status;

	public Date getCollectionTime() {
		return collectionTime;
	}

	public void setCollectionTime(Date collectionTime) {
		this.collectionTime = collectionTime;
	}

	public String getPlateNo() {
		return plateNo;
	}

	public void setPlateNo(String plateNo) {
		this.plateNo = plateNo;
	}

	public String getPlateColor() {
		return plateColor;
	}

	public void setPlateColor(String plateColor) {
		this.plateColor = plateColor;
	}

	public String getTrainType() {
		return trainType;
	}

	public void setTrainType(String trainType) {
		this.trainType = trainType;
	}

	public Integer getAxleNumber() {
		return axleNumber;
	}

	public void setAxleNumber(Integer axleNumber) {
		this.axleNumber = axleNumber;
	}

	public Integer getWheelNumber() {
		return wheelNumber;
	}

	public void setWheelNumber(Integer wheelNumber) {
		this.wheelNumber = wheelNumber;
	}

	public Double getTotalWeight() {
		return totalWeight;
	}

	public void setTotalWeight(Double totalWeight) {
		this.totalWeight = totalWeight;
	}

	public Double getWheelWeight() {
		return wheelWeight;
	}

	public void setWheelWeight(Double wheelWeight) {
		this.wheelWeight = wheelWeight;
	}

	public Double getOverrunWeight() {
		return overrunWeight;
	}

	public void setOverrunWeight(Double overrunWeight) {
		this.overrunWeight = overrunWeight;
	}

	public String getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}

	public Station getStation() {
		return station;
	}

	public void setStation(Station station) {
		this.station = station;
	}

	public Equip getEquip() {
		return equip;
	}

	public void setEquip(Equip equip) {
		this.equip = equip;
	}

	public List<EquipFileData> getFileData() {
		return fileData;
	}

	public void setFileData(List<EquipFileData> fileData) {
		this.fileData = fileData;
	}

	public System getSystem() {
		return system;
	}

	public void setSystem(System system) {
		this.system = system;
	}

	public Integer getWheelNumber1() {
		return wheelNumber1;
	}

	public void setWheelNumber1(Integer wheelNumber1) {
		this.wheelNumber1 = wheelNumber1;
	}

	public Integer getWheelNumber2() {
		return wheelNumber2;
	}

	public void setWheelNumber2(Integer wheelNumber2) {
		this.wheelNumber2 = wheelNumber2;
	}

	public Integer getWheelNumber3() {
		return wheelNumber3;
	}

	public void setWheelNumber3(Integer wheelNumber3) {
		this.wheelNumber3 = wheelNumber3;
	}

	public Integer getWheelNumber4() {
		return wheelNumber4;
	}

	public void setWheelNumber4(Integer wheelNumber4) {
		this.wheelNumber4 = wheelNumber4;
	}

	public Integer getWheelNumber5() {
		return wheelNumber5;
	}

	public void setWheelNumber5(Integer wheelNumber5) {
		this.wheelNumber5 = wheelNumber5;
	}

	public Integer getWheelNumber6() {
		return wheelNumber6;
	}

	public void setWheelNumber6(Integer wheelNumber6) {
		this.wheelNumber6 = wheelNumber6;
	}

	public Integer getWheelNumber7() {
		return wheelNumber7;
	}

	public void setWheelNumber7(Integer wheelNumber7) {
		this.wheelNumber7 = wheelNumber7;
	}

	public Integer getWheelNumber8() {
		return wheelNumber8;
	}

	public void setWheelNumber8(Integer wheelNumber8) {
		this.wheelNumber8 = wheelNumber8;
	}

	public Integer getWheelNumber9() {
		return wheelNumber9;
	}

	public void setWheelNumber9(Integer wheelNumber9) {
		this.wheelNumber9 = wheelNumber9;
	}

	public Integer getWheelNumber10() {
		return wheelNumber10;
	}

	public void setWheelNumber10(Integer wheelNumber10) {
		this.wheelNumber10 = wheelNumber10;
	}

	public Double getSpeed() {
		return speed;
	}

	public void setSpeed(Double speed) {
		this.speed = speed;
	}

	public List<EquipDataMark> getMarkList() {
		return markList;
	}

	public void setMarkList(List<EquipDataMark> markList) {
		this.markList = markList;
	}

	public Double getAxleWeight1() {
		return axleWeight1;
	}

	public void setAxleWeight1(Double axleWeight1) {
		this.axleWeight1 = axleWeight1;
	}

	public Double getAxleWeight2() {
		return axleWeight2;
	}

	public void setAxleWeight2(Double axleWeight2) {
		this.axleWeight2 = axleWeight2;
	}

	public Double getAxleWeight3() {
		return axleWeight3;
	}

	public void setAxleWeight3(Double axleWeight3) {
		this.axleWeight3 = axleWeight3;
	}

	public Double getAxleWeight4() {
		return axleWeight4;
	}

	public void setAxleWeight4(Double axleWeight4) {
		this.axleWeight4 = axleWeight4;
	}

	public Double getAxleWeight5() {
		return axleWeight5;
	}

	public void setAxleWeight5(Double axleWeight5) {
		this.axleWeight5 = axleWeight5;
	}

	public Double getAxleWeight6() {
		return axleWeight6;
	}

	public void setAxleWeight6(Double axleWeight6) {
		this.axleWeight6 = axleWeight6;
	}

	public Double getAxleWeight7() {
		return axleWeight7;
	}

	public void setAxleWeight7(Double axleWeight7) {
		this.axleWeight7 = axleWeight7;
	}

	public Double getAxleWeight8() {
		return axleWeight8;
	}

	public void setAxleWeight8(Double axleWeight8) {
		this.axleWeight8 = axleWeight8;
	}

	public Double getAxleWeight9() {
		return axleWeight9;
	}

	public void setAxleWeight9(Double axleWeight9) {
		this.axleWeight9 = axleWeight9;
	}

	public Double getAxleWeight10() {
		return axleWeight10;
	}

	public void setAxleWeight10(Double axleWeight10) {
		this.axleWeight10 = axleWeight10;
	}

	public Double getAxleBase1() {
		return axleBase1;
	}

	public void setAxleBase1(Double axleBase1) {
		this.axleBase1 = axleBase1;
	}

	public Double getAxleBase2() {
		return axleBase2;
	}

	public void setAxleBase2(Double axleBase2) {
		this.axleBase2 = axleBase2;
	}

	public Double getAxleBase3() {
		return axleBase3;
	}

	public void setAxleBase3(Double axleBase3) {
		this.axleBase3 = axleBase3;
	}

	public Double getAxleBase4() {
		return axleBase4;
	}

	public void setAxleBase4(Double axleBase4) {
		this.axleBase4 = axleBase4;
	}

	public Double getAxleBase5() {
		return axleBase5;
	}

	public void setAxleBase5(Double axleBase5) {
		this.axleBase5 = axleBase5;
	}

	public Double getAxleBase6() {
		return axleBase6;
	}

	public void setAxleBase6(Double axleBase6) {
		this.axleBase6 = axleBase6;
	}

	public Double getAxleBase7() {
		return axleBase7;
	}

	public void setAxleBase7(Double axleBase7) {
		this.axleBase7 = axleBase7;
	}

	public Double getAxleBase8() {
		return axleBase8;
	}

	public void setAxleBase8(Double axleBase8) {
		this.axleBase8 = axleBase8;
	}

	public Double getAxleBase9() {
		return axleBase9;
	}

	public void setAxleBase9(Double axleBase9) {
		this.axleBase9 = axleBase9;
	}

	public Double getAxleBase10() {
		return axleBase10;
	}

	public void setAxleBase10(Double axleBase10) {
		this.axleBase10 = axleBase10;
	}

	public Integer getTag() {
		return tag;
	}

	public void setTag(Integer tag) {
		this.tag = tag;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "EquipData [collectionTime=" + collectionTime + ", plateNo=" + plateNo + ", plateColor=" + plateColor
				+ ", trainType=" + trainType + ", axleNumber=" + axleNumber + ", wheelNumber=" + wheelNumber
				+ ", speed=" + speed + ", totalWeight=" + totalWeight + ", wheelWeight=" + wheelWeight
				+ ", overrunWeight=" + overrunWeight + ", goodsType=" + goodsType + ", station=" + station + ", equip="
				+ equip + ", fileData=" + fileData + ", markList=" + markList + ", system=" + system + ", wheelNumber1="
				+ wheelNumber1 + ", wheelNumber2=" + wheelNumber2 + ", wheelNumber3=" + wheelNumber3 + ", wheelNumber4="
				+ wheelNumber4 + ", wheelNumber5=" + wheelNumber5 + ", wheelNumber6=" + wheelNumber6 + ", wheelNumber7="
				+ wheelNumber7 + ", wheelNumber8=" + wheelNumber8 + ", wheelNumber9=" + wheelNumber9
				+ ", wheelNumber10=" + wheelNumber10 + ", axleWeight1=" + axleWeight1 + ", axleWeight2=" + axleWeight2
				+ ", axleWeight3=" + axleWeight3 + ", axleWeight4=" + axleWeight4 + ", axleWeight5=" + axleWeight5
				+ ", axleWeight6=" + axleWeight6 + ", axleWeight7=" + axleWeight7 + ", axleWeight8=" + axleWeight8
				+ ", axleWeight9=" + axleWeight9 + ", axleWeight10=" + axleWeight10 + ", axleBase1=" + axleBase1
				+ ", axleBase2=" + axleBase2 + ", axleBase3=" + axleBase3 + ", axleBase4=" + axleBase4 + ", axleBase5="
				+ axleBase5 + ", axleBase6=" + axleBase6 + ", axleBase7=" + axleBase7 + ", axleBase8=" + axleBase8
				+ ", axleBase9=" + axleBase9 + ", axleBase10=" + axleBase10 + ", tag=" + tag + ", status=" + status
				+ "]";
	}

	

}
